/* 文件管理页面样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    background-color: #607d8b;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    background-color: #455a64;
}

.files-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.file-list {
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.file-item {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item:hover {
    background-color: #f0f0f0;
}

.file-item.active {
    background-color: #e3f2fd;
}

.file-item.main-file {
    font-weight: bold;
    color: #2196F3;
}

.editor-container {
    display: none;
}

.editor-container.active {
    display: block;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.save-btn, .set-main-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.save-btn:hover {
    background-color: #45a049;
}

.set-main-btn {
    background-color: #2196F3;
    color: white;
}

.set-main-btn:hover {
    background-color: #1976D2;
}

.editor {
    width: 100%;
    height: 500px;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    color: white;
    display: none;
}

.status-message.success {
    background-color: #4CAF50;
}

.status-message.error {
    background-color: #f44336;
} 